#include "VEnginePCH.h"
#include "VMath.h"


const int c_iSIN_TABLE_SIZE = 1024;
const float c_fFTOIBIAS = 12582912.f;
const float c_fRADIAN_2_INDEX = ((float)162.9746617261f); //  SIN_TABLE_SIZE / 2 PI
const VSinCosTable c_sincostable;

VSinCosTable::VSinCosTable()
{
	for( int i = 0; i < c_iSIN_TABLE_SIZE; i++ )
	{
		SinCosTable[i] = sinf(i * V2PI / c_iSIN_TABLE_SIZE);
	}
}

const VMatrix44 VMatrix44::Identity(1.0f,0.0f,0.0f,0.0f,
									0.0f,1.0f,0.0f,0.0f,
									0.0f,0.0f,1.0f,0.0f,
									0.0f,0.0f,0.0f,1.0f);